<template>
  <div class="byRecipe">
    <div class="empty" v-if="shoppingList.length == 0">
      带着购物单逛超市更方便
    </div>
    <div v-else class="shoppingLists">
      <ShoppingList1 v-for="item in shoppingList" :key="item" :item="item" />
    </div>
  </div>
</template>

<script setup lang="ts">
import ShoppingList1 from "@/components/ShoppingList1.vue";
const props = defineProps(["shoppingList"]);
</script>

<style lang="scss" scoped>
.byRecipe {
  .empty {
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    color: #999;
  }
}
</style>
